import { Tween, Node } from "cc"
import { ClientEvent } from "./framework/ClientEvent"
import { GUIDE_STATE } from "./framework/constant"
import { Size } from "cc"

export class GlobalData {
  private static _instance: GlobalData = null

  public static get instance(): GlobalData {
    if (!GlobalData._instance) GlobalData._instance = new GlobalData()
    return GlobalData._instance
  }

  public isGameStart: boolean = false

  public isGameOver: boolean = false

  public isGamePause: boolean = false


  private _coinValue: number = 0
  public set coinValue(value: number) {
    this._coinValue = value
    ClientEvent.emit("onCoinValueChange")
  }
  public get coinValue() {
    return this._coinValue
  }


}
